package top.littlejiang.onlinexam.service;

import top.littlejiang.onlinexam.entity.OlexamExam;
import top.littlejiang.onlinexam.entity.OlexamExamPaper;
import top.littlejiang.onlinexam.common.base.BaseService;
import top.littlejiang.onlinexam.entity.OlexamQuestions;
import top.littlejiang.onlinexam.vo.PaperQueryVO;

import java.util.List;

/**
 * <p>
 * 试卷表 服务类
 * </p>
 *
 * @author chen
 * @since 2021-03-11
 */
public interface OlexamExamPaperService extends BaseService<OlexamExamPaper> {

    /**
     * 查找试卷
     * @param paperQuery
     * @return
     */
    List<OlexamExamPaper> getList(PaperQueryVO paperQuery);

    /**
     * 增加或更新试卷
     * @param examPaper
     */
    void insertOrUpdate(OlexamExamPaper examPaper);

    /**
     * 根据考试uuid 逻辑删除
     * @param uuids
     */
    void deleteByUuid(List<String> uuids);

    /**
     * 获取一张试卷
     * @param exam
     * @return
     */
    List<OlexamQuestions> getByUuid(OlexamExam exam);
}
